package com.dongnam.quanly.common;

import java.util.ArrayList;
import java.util.List;

public enum ScreenType {
	PRIVILEGE("A"), AUDIT("A"),

	DoiTac("A"), Kho("A"), LoaiVatTuHangHoa("A"), NganHang("A"), NhanVien("A"), NhomDoiTac("A"), PhongBan("A"), TaiKhoanNganHang(
			"A"), VatTuHangHoa("A"),

	BaoHanhThietBi("A"), NhanThietBi("A"), SuaChuaThietBi("A"), TraThietBi("A"),

	HuongDan("A"),

	NoPhaiThu("A"), NoPhaiTra("A"),

	LapRapThaoDo("A"), NhapXuatKho("A"), TonKho("A"),

	BaoGia("A"), DoiSoat("A"), DonHang("A"), HoaDon("A"),TrangThaiDonHang("A"),

	PhieuThuChi("A"), SoQuy("A"),

	TienIch("A"),

	TrangThai_DonDatHang("A"), TrangThai_DonHangDichVu("A"), TongKetTheoNgay("A"), TrangThaiMuaBan("A"),

	FREE("O"), READONLY("O"), ;

	public String active;

	private ScreenType(String active) {
		this.active = active;
	}

	public static List<ScreenType> getEnum(String active) {
		List<ScreenType> list = new ArrayList<ScreenType>();
		for (ScreenType option : ScreenType.values()) {
			if (option.active.equals(active)) {
				list.add(option);
			}
		}
		return list;
	}
}
